<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>项目管理系统</title>
    <link rel="stylesheet" type="text/css" href="static/bootstrap/css/bootstrap.min.css" />
    <style type="text/css">
		body{
			background-image:url(static/img/bg.png);
		}
	</style>
  </head>
  <body>
	<%@ include file="top.jsp" %>
	<div class="container" style="margin-top:100px">
		<form action="login.jspx" method="post" class="well" style="width:220px;margin:0px auto;">
		  <legend>PMS</legend>
	
		  <c:if test="${requestScope.msg1 != null}">
			  <div class="alert alert-error">
					<button class="close" data-dismiss="alert" type="button">×</button>
				  	${requestScope.msg1}
			  </div>
		  </c:if>
		   <c:if test="${requestScope.msg2 != null}">
			  <div class="alert alert-error">
			  <button class="close" data-dismiss="alert" type="button">×</button>
			  	${requestScope.msg2}
			  </div>
		  </c:if>
		  <c:if test="${requestScope.msg3 != null}">
			  <div class="alert alert-error">
				<button class="close" data-dismiss="alert" type="button">×</button>
			  	${requestScope.msg3}
			  </div>
		  </c:if>
		  
		  <label>账号</label>
		  <input type="text" class="span3" id="email" name="email">
		  <div id="em" style="color:red"></div>
		  <label>密码</label>
		  <input type="password" class="span3" name="password">
		  <div id="pas"></div>
		  <br/>
		  <button type="submit" class="btn btn-primary">进入系统</button>
		</form>
	</div>
	<script type="text/javascript">
		function checkEmail(){
			if(document.getElementById("email").value!=/^\w+@\w+(\.\w+){1,2}$/ ){
				document.getElementById("em").innerHTML="邮箱格式不正确";
			};
		};
		function vanish(){
			document.getElementById("em").innerHTML="";
		};
	</script>		
	<script type="text/javascript" src="static/jquery/jquery.js"></script>
	<script type="text/javascript" src="static/bootstrap/js/bootstrap.min.js"></script>
  </body>
</html>
